package com.dkd.music.domain;

import com.dkd.common.annotation.Excel;
import com.dkd.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

/**
 * 音乐作品对象 t_music
 * 
 * @author grz
 * @date 2025-10-26
 */
public class Music extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 音乐ID */
    private Long musicId;

    /** 歌曲标题 */
    @Excel(name = "歌曲标题")
    private String title;

    /** 所属歌手ID */
    private Long artistId;

    /** 所属歌手名 (冗余字段) */
    @Excel(name = "所属歌手名 (冗余字段)")
    private String artistName;

    /** 所属专辑ID */
    private Long albumId;

    /** 所属专辑名 (冗余字段) */
    @Excel(name = "所属专辑名 (冗余字段)")
    private String albumName;

    /** 时长(秒) */
    @Excel(name = "时长(秒)")
    private Long duration;

    /** 歌曲文件URL */
    @Excel(name = "歌曲文件URL")
    private String fileUrl;

    /** 歌词 */
    @Excel(name = "歌词")
    private String lyric;

    /** 状态 (0=待审核, 1=已发布, 2=已驳回) */
    private String status;

    public void setMusicId(Long musicId) 
    {
        this.musicId = musicId;
    }

    public Long getMusicId() 
    {
        return musicId;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setArtistId(Long artistId) 
    {
        this.artistId = artistId;
    }

    public Long getArtistId() 
    {
        return artistId;
    }

    public void setArtistName(String artistName) 
    {
        this.artistName = artistName;
    }

    public String getArtistName() 
    {
        return artistName;
    }

    public void setAlbumId(Long albumId) 
    {
        this.albumId = albumId;
    }

    public Long getAlbumId() 
    {
        return albumId;
    }

    public void setAlbumName(String albumName) 
    {
        this.albumName = albumName;
    }

    public String getAlbumName() 
    {
        return albumName;
    }

    public void setDuration(Long duration) 
    {
        this.duration = duration;
    }

    public Long getDuration() 
    {
        return duration;
    }

    public void setFileUrl(String fileUrl) 
    {
        this.fileUrl = fileUrl;
    }

    public String getFileUrl() 
    {
        return fileUrl;
    }

    public void setLyric(String lyric) 
    {
        this.lyric = lyric;
    }

    public String getLyric() 
    {
        return lyric;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("musicId", getMusicId())
            .append("title", getTitle())
            .append("artistId", getArtistId())
            .append("artistName", getArtistName())
            .append("albumId", getAlbumId())
            .append("albumName", getAlbumName())
            .append("duration", getDuration())
            .append("fileUrl", getFileUrl())
            .append("lyric", getLyric())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
